package com.bstek.uflo.core.test;

/**
 * @author Lucas
 *	上下文工具类
 */
public class ContextHolder {
	private static User user=new User("user1","bstek");
	public static String getLoginUser() {
		return user.getLoginUser();
	}
	public static String getCategoryId() {
		return user.getCategoryId();
	}
	public static void setLoginUser(String loginUser, String categoryId) {
		user=new User(loginUser, categoryId);
	}
}
class User{
	private String loginUser;
	private String categoryId;
	public User() {}
	public User(String username, String categoryId) {
		this.loginUser=username;
		this.categoryId=categoryId;
	}
	public String getLoginUser() {
		return loginUser;
	}
	public String getCategoryId() {
		return categoryId;
	}
	public void setLoginUser(String loginUser) {
		this.loginUser = loginUser;
	}
	public void setCategoryId(String categoryId) {
		this.categoryId = categoryId;
	}
}
